package com.evil.application.pojo.dto.order.related;

import lombok.Data;

/**
 * @author liyang
 * @date 2023-05-19 13:41
 */
@Data
public class RelatedListDTO {

    private String type;

    /**
     * 关联单个控件数据
     */
    private RelatedDataListDTO relatedDataList;

    /**
     * 关联多个控件数据
     */
    private RelatedOrderListDTO relatedOrderList;

    public RelatedListDTO() {
        this.type = "relatedDataList";
    }

    public RelatedListDTO(RelatedDataListDTO relatedDataList) {
        this.type = "relatedDataList";
        this.relatedDataList = relatedDataList;
    }

    public RelatedListDTO(RelatedOrderListDTO relatedOrderList) {
        this.type = "relatedOrderList";
        this.relatedOrderList = relatedOrderList;
    }
}
